// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import MuseUI from 'muse-ui'
// import 'muse-ui/dist/muse-ui.css'
import router from './router'
import axios from 'axios'
import vuex from 'vuex'
import store from './store'

Vue.config.productionTip = false
Vue.prototype.$axios = axios
// Vue.use(vuex)

// Vue.use(MuseUI)
/* eslint-disable no-new */
window.bus = window.bus || new Vue()
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>',
  filters: {
    // selectSearchFilter: function (selectdata, inputData) {
    //   var newSelectData = ''
    //   debugger
    //   if (!this.inputData) {
    //     return
    //   }
    //   for (var key in selectdata) {
    //     if (selectdata[key].indexOf(this.inputData) > 0) {
    //       newSelectData.push(selectdata[key])
    //     }
    //   }
    //   return selectdata
    // }
  }
})
